/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tletlis.model;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;

/**
 * The Yellow brick shaped like a square.
 * @author Gustav
 */
public class YellowBrick extends AbstractBrick {

 /**
  * Constructor for initializing the shape of the brick
  * and the starting state.
  * @param y The vertical position were the brick will start.
  * @param x The horizontal position were the brick will start.
  */
    public YellowBrick(int y, int x) {
        cords = new ArrayList<Position>();
        distance = Position.getLength();
        for(int i = 0; i < 2; i++) {
            for(int j = 0; j < 2; j++ ) {
                cords.add(new Position((y+(i*distance)),(x+(j*distance))));
            }
        }
        color = Color.YELLOW;
    }

 /**
  * Method returning the rotated shape of the brick.
  * @return List<Position>
  */
    @Override
    protected List<Position> rotateBrick() {
        return cords;
    }
    @Override
    protected void nextState() {
        
    }
}
